import config from "@/config"
import http from "@/utils/request"

export default {
	// 图片上传
	upload: {
		url: `${config.API_URL}/admin/common/upload`,
		name: "图片上传",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
	// 文件上传
	uploadFile: {
		url: `${config.API_URL}/admin/common/uploadFile`,
		name: "文件上传", 
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	}
}